cmake_minimum_required(VERSION 2.8)

project(EverestORM)

SET(CMAKE_SOURCE_DIR .)
SET(CMAKE_CXX_FLAGS_DEBUG "$ENV{CXXFLAGS} -O0 -Wall -g -ggdb -fpermissive")
SET(CMAKE_CXX_FLAGS_RELEASE "$ENV{CXXFLAGS} -O2 -Wall -fpermissive")
SET(CMAKE_BUILD_TYPE DEBUG)

subdirs(test)

set(Lib_EverestORM_Sources
	src/odbc/SQLException.cpp
	src/odbc/Environment.cpp
	src/odbc/DriverInfo.cpp
	src/odbc/Connection.cpp
	src/odbc/Statement.cpp
	src/odbc/Parameter.cpp
	src/odbc/Recordset.cpp)

include_directories(include)
add_library(EverestORM SHARED ${Lib_EverestORM_Sources})
target_link_libraries(EverestORM odbc)
